package com.tencent.live;

import android.app.Application;
import android.content.Context;

import org.xutils.x;

public class MyApp extends Application {

    /**
     * 系统上下文
     */
    private static Context mAppContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mAppContext = getApplicationContext();
        x.Ext.init(this);
    }

    /**
     * 获取系统上下文：用于ToastUtil类
     */
    public static Context getAppContext() {
        return mAppContext;
    }
}
